package project;

import java.util.HashMap;
import java.util.Map;

/**
 * @program: homeWork
 * @description:
 * @author: hezhiqin
 * @create: 2019-10-02 08:35
 */
public class Leader implements IEmployee {

    private Map<String,IEmployee> targets = new HashMap<String, IEmployee>();

    public Leader() {
        targets.put("加密",new EmployeeA());
        targets.put("登录",new EmployeeB());
    }

    public void doing(String command) {
        targets.get(command).doing(command);
    }
}
